package com.haoniu.module.service.impl;

import com.haoniu.common.support.Convert;
import com.haoniu.module.domain.database.GroupPlay;
import com.haoniu.module.mapper.GroupPlayMapper;
import com.haoniu.module.service.GroupPlayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GroupPlayServiceImpl implements GroupPlayService {
    @Autowired
    private GroupPlayMapper groupPlayMapper;

    @Override
    public GroupPlay selectGroupPlayById(Integer id) {
        return groupPlayMapper.selectGroupPlayById(id);
    }

    @Override
    public List<GroupPlay> selectGroupPlayList(GroupPlay groupPlay) {
        return groupPlayMapper.selectGroupPlayList(groupPlay);
    }

    @Override
    public int insertGroupPlay(GroupPlay groupPlay) {
        return groupPlayMapper.insertGroupPlay(groupPlay);
    }

    @Override
    public int updateGroupPlay(GroupPlay groupPlay) {
        return groupPlayMapper.updateGroupPlay(groupPlay);
    }

    @Override
    public int deleteGroupPlayById(Integer id) {
        return groupPlayMapper.deleteGroupPlayById(id);
    }

    @Override
    public int deleteGroupPlayByIds(String ids) {
        return groupPlayMapper.deleteGroupPlayByIds(Convert.toStrArray(ids));
    }
}
